﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTOFrameworks;
using System.Xml;
using FooFun.DataElements.Dtos;

namespace PhysicalDataProvider
{
    public class ContentService
    {
        public IDataElement CreateContent(IDataElement parent,
            string content)
        {
            XmlElementDataElement de = (XmlElementDataElement)parent;            

            XmlElement xe = de.Document.CreateElement("Content");
            de.Node.AppendChild(xe);

            XmlElementDataElement newDe
                = new XmlElementDataElement(xe);

            newDe.Value = content;

            return newDe;
        }
    }
}
